<?php
/**
 * Created by PhpStorm.
 * User: Artem
 * Date: 04.12.2014
 * Time: 22:19
 */

namespace Orm;

use Entity\Product;

class ProductRepo extends AbstractRepo
{

    protected function getTableName()
    {
        return 'product';
    }

    protected function getMapping()
    {
        return array('id','title','expiration_date','manafacture_date','manufacture_id','price','summary');
    }

    protected function getInstance()
    {
        return new Product();
    }
}